<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>编辑数据</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <input type='text' style='display: none' name='id' value='{$data.id}'/>
		<div class='form-item'>
			<label class='item-label'>主机名称<span class='check-tips'></span></label>
			<div class='controls'>
				<input type='text' class='text input-large' name='name' value='{$data.name}'>
			</div>
		</div>
				<div class='form-item'>
			<label class='item-label'>主机标识<span class='check-tips'></span></label>
			<div class='controls'>
				<input type='text' class='text input-large' name='identifier' value='{$data.identifier}'>
			</div>
		</div>
				<div class='form-item'>
			<label class='item-label'>主机类型<span class='check-tips'></span></label>
			<div class='controls'>
				<input type='text' class='text input-large' name='type' value='{$data.type}'>
			</div>
		</div>
				<div class='form-item'>
			<label class='item-label'>简介<span class='check-tips'></span></label>
			<div class='controls'>
				<input type='text' class='text input-large' name='brief_introduction' value='{$data.brief_introduction}'>
			</div>
		</div>
				<div class='form-item'>
			<label class='item-label'>车间<span class='check-tips'></span></label>
			<div class='controls'>
				<select name="workshop_id">				
                <volist name=":get_all_workshop()" id="vo">
                <eq name="data.workshop_id" value="$vo.id">
				  <option selected="selected" value ="{$vo.id}">{$vo.name}</option>
				  <else/>
				  <option value ="{$vo.id}">{$vo.name}</option>
				  </eq>
				 </volist>
				</select>
			</div>
		</div>

        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('index')}');
    </script>
</block>
